<?php

require 'Common/Plugin/MyPlugin.php';

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    private $_acl;
    private $_auth;

    protected function _initAutoload()
    {
        $moduleLoader = new Zend_Application_Module_Autoloader(array(
            'namespace' => '',
            'basePath' => APPLICATION_PATH));

        //$autoloader = Zend_Loader_Autoloader::getInstance();
        //$autoloader->setFallbackAutoloader(true);

        return $moduleLoader;
    }
	public function run()
	{
		$front   = $this->getResource('FrontController');
        $default = $front->getDefaultModule();
        if (null === $front->getControllerDirectory($default)) {
            throw new Zend_Application_Bootstrap_Exception(
                'No default controller directory registered with front controller'
            );
        }

        $front->setParam('bootstrap', $this);
        //$front->registerPlugin(new Common_Plugin_MyPlugin());
        $front->dispatch();
	}
}
